package com.lz.football.module.compete.item
{
	import com.common.utils.Reflection;
	import com.liangzhong.model.compete.vo.NationRankvo;
	import com.lz.football.module.base.IComponent;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.text.TextField;
	/**
	 *  国家间的排名
	 * @author Administrator
	 * 
	 */	
	public class NationRankItem extends Sprite implements IComponent
	{
		private var _skin:MovieClip;
		/**
		 * 
		 */
		private var rank:TextField;
		/**
		 *国家 
		 */
		private var nationIcon:MovieClip;
		/**
		 *积分 
		 */
		private var integral:TextField;
		public function NationRankItem()
		{
			super();
		}
		
		public function initUI(view:Object=null):void
		{
			_skin = Reflection.createInstance("com.lz.modul.compete.nationItem");
			this.addChild(_skin);
			rank = _skin.rank;
			nationIcon = _skin.nationIcon;
			integral = _skin.integral;
		}
		/**
		 *设置数据 
		 * @param $vo
		 * 
		 */
		public function setData($vo:NationRankvo):void
		{
			rank.text = "" + $vo.nationrank;
			integral.text = ""+ $vo.rival;
			nationIcon.gotoAndStop($vo.country);
		}
		public function addEvtListener():void
		{
		}
		
		public function removeEvtListener():void
		{
		}
		
		public function destroyView():void
		{
		}
	}
}